﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using tinyweb.framework;
using Bepo.Helpers;

namespace Bepo.Handlers.API
{
    public class ApiSetuptasksHandler
    {
        public IResult Get()
        {
            var items = Bepo.Model.Data.BepoDB.Tasks.All().ToList().OrderByDescending(x => x.SetupOn);
            return Envelope.Json(items);
        }
    }
}